package com.ruoyi.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.system.domain.GgSysLog;
import com.ruoyi.system.service.IGgSysLogService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import start.spring.basic.page.PageQuery;
import start.spring.basic.response.ResponsePage;

/**
 * 
 * @author xuyy
 * @date 2023-06-25
 *
 */
@RestController
@RequestMapping("/log")
@Api(tags = "系统日志相关接口")
public class GgSysLogController extends BaseController {
	
    @Autowired
    private IGgSysLogService ggSysLogService;
	
    @RequiresPermissions("system:log:list")
    @PostMapping("/list")
    @ApiOperation(value = "查询系统日志列表", notes = "分页查询")
    public ResponsePage<GgSysLog> list(PageQuery pageQuery, @RequestBody GgSysLog ggSysLog) {
    	return super.returnResponse(this.ggSysLogService.selectGgSysLogPageList(pageQuery, ggSysLog));
    }
    
}
